﻿using RecruitStudents.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace RecruitStudents.Client.WS
{
    /// <summary>
    /// OnSiteSignService 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class OnSiteSignService : WS.Helper.BaseServiceHelper
    {
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string UpdateExamSigned(string strSignedID, string strExamYear)
        { 
            return ServiceOnSiteSign.UpdateExamSigned(strSignedID, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetTB_Pad_Examing(string strSignedID, string strExamRoomNO, string strExamYear)
        {
            return ServiceOnSiteSign.GetTB_Pad_Examing(strSignedID, strExamRoomNO, strExamYear).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetTB_Pad_SignedTableTopOne_New(string strEntretenimientohID, string strExamYear)
        {
            return ServiceOnSiteSign.GetTB_Pad_SignedTableTopOne_New(strEntretenimientohID, strExamYear).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetExamSignedByID(string strSignedID, string strExamYear)
        {
            return ServiceOnSiteSign.GetExamSignedByID(strSignedID, strExamYear).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string CheckTB_Pad_Signed_New(string SpecialityKindsNO, string ExamLevel, string ExamPlaceNO, string idCard, string strExamYear)
        {
            return ServiceOnSiteSign.CheckTB_Pad_Signed_New(SpecialityKindsNO, ExamLevel, ExamPlaceNO, idCard, strExamYear).ToJson();
        }
        [SoapHeader("MyHeader")]
        [WebMethod]
        public string GetTB_Pad_SignedTable_New(string strEntretenimientohID, string strExamYear)
        {
            return ServiceOnSiteSign.GetTB_Pad_SignedTable_New(strEntretenimientohID, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>签到时根据条件验证考试签到信息 DataTable</i></b>
            <br><font color='blue'>string</font> SpecialityKindsNO:专业
            <br><font color='blue'>string</font> ExamLevel:级别
            <br><font color='blue'>string</font> ExamPlaceNO:考点
            <br><font color='blue'>string</font> idCard:身份证号码")]
        public string CheckTB_Pad_Signed(string SpecialityKindsNO, string ExamLevel, string ExamPlaceNO, string idCard)
        {
            return ServiceOnSiteSign.CheckTB_Pad_Signed(SpecialityKindsNO, ExamLevel, ExamPlaceNO, idCard).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>根据条件考试签到信息 DataTable</i></b>
            <br><font color='blue'>string</font> strEntretenimientohID:考务ID
            <br><font color='blue'>string</font> strIdentityCard:身份证号码")]
        public string GetTB_Pad_SignedTableByIdCard(string strEntretenimientohID, string strIdentityCard,string strExamYear)
        {
            return ServiceOnSiteSign.GetTB_Pad_SignedTableByIdCard(strEntretenimientohID, strIdentityCard, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>根据条件考试签到信息 DataTable</i></b>
            <br><font color='blue'>string</font> strEntretenimientohID:考务ID
            <br><font color='blue'>string</font> isOrder :排序")]
        public string GetTB_Pad_SignedTable(string strEntretenimientohID, string isOrder)
        {
            return ServiceOnSiteSign.GetTB_Pad_SignedTable(strEntretenimientohID, isOrder).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>根据条件考试签到信息 DataTable</i></b>
            <br><font color='blue'>string</font> strEntretenimientohID:考务ID
            <br><font color='blue'>string</font> isOrder :排序")]
        public string GetTB_Pad_SignedTableTopOne(string strEntretenimientohID, string isOrder)
        {
            return ServiceOnSiteSign.GetTB_Pad_SignedTableTopOne(strEntretenimientohID, isOrder).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>每个考场根据条件考试签到信息 DataTable</i></b> 
            <br><font color='blue'>string</font> strExamRoomNo :考场编号")]
        public string GetCombinationData(string strExamRoomNo,string strExamYear)
        {
            return ServiceOnSiteSign.GetCombinationData(strExamRoomNo, strExamYear).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>每个考场根据条件考试签到信息 int</i></b> 
            <br><font color='blue'>string</font> strExamRoomNo :考场编号")]
        public int GetQueueCount(string ExamRoomID)
        {
            return ServiceOnSiteSign.GetQueueCount(ExamRoomID);
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存考试签到信息 JsonMessage</i></b> 
            <br><font color='blue'>string</font> strJson :TB_Exam_Signed")]
        public string SaveExamSigned(string strJson)
        {
            return ServiceOnSiteSign.SaveExamSigned(strJson).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>删除考试签到信息 JsonMessage</i></b> 
            <br><font color='blue'>string</font> strSignedID :主键信息")]
        public string DeleteExamSigned(string strSignedID)
        {
            return ServiceOnSiteSign.DeleteExamSigned(strSignedID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>保存考试排序信息 JsonMessage</i></b> 
            <br><font color='blue'>string</font> strJson :TB_Pad_Queue")]
        public string SavePadQueue(string strJson)
        {
            return ServiceOnSiteSign.SavePadQueue(strJson).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>根据签到号保存排序信息 JsonMessage</i></b> 
            <br><font color='blue'>string</font> strSignedID :签到主键
            <br><font color='blue'>string</font> ExamRoomID :考场编号")]
        public string SavePadQueueBySignedID(string strSignedID, string ExamRoomID)
        {
            return ServiceOnSiteSign.SavePadQueueBySignedID(strSignedID, ExamRoomID).ToJson();
        }

        [SoapHeader("MyHeader")]
        [WebMethod(Description = @"<b><i>删除考试排对信息 JsonMessage</i></b> 
            <br><font color='blue'>string</font> strSignedID :签到主键")]
        public string DeletePadQueue(string strSignedID)
        {
            return ServiceOnSiteSign.DeletePadQueue(strSignedID).ToJson();
        }
    }
}
